{% extends 'base.html' %}

{% block content %}
<div class="container mt-4">
    <div class="card border-danger">
        <div class="card-header bg-danger text-white">
            <h4>确认删除</h4>
        </div>
        <div class="card-body">
            <p class="lead">您确定要删除知识点 <strong>{{ knowledge_point.name }}</strong> 吗？</p>
            <p class="text-danger">警告：此操作不可撤销。删除后，该知识点的所有相关数据将被永久移除。</p>

            <form method="post">
                {% csrf_token %}
                <div class="d-flex gap-2">
                    <button type="submit" class="btn btn-danger">确认删除</button>
                    <a href="{% url 'core:subject_chapter_knowledge' chapter.subject_id %}" class="btn btn-outline-secondary">取消</a>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}